/*

Copyright 2009 Nicola Dal Pont

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Version ${MAJOR_VERSION}.${MINOR_VERSION}${BETA_MARK} Build ${BUILD_NUMBER}

*/

package com.astoolkit.workflow.api
{
	import mx.core.IFactory;
	import mx.rpc.Fault;
	
	public interface IWorkflowDelegate
	{
		function set onInitialize( inFunction : Function ) : void;
		function set onComplete( inFunction : Function ) : void;
		function set onPrepare( inFunction : Function ) : void;
		function set onBegin( inFunction : Function ) : void;
		function set onSuspend( inFunction : Function ) : void;
		function set onResume( inFunction : Function ) : void;
		function set onProgress( inFunction : Function ) : void;
		function set onFault( inFunction : Function ) : void;
		function set onWarning( inFunction : Function ) : void;
		function set onAbort( inFunction : Function ) : void;
		
		function get onInitialize( ) : Function;
		function get onComplete( ) : Function;
		function get onPrepare( ) : Function;
		function get onBegin( ) : Function;
		function get onSuspend( ) : Function;
		function get onResume( ) : Function;
		function get onProgress( ) : Function;
		function get onFault( ) : Function;
		function get onWarning( ) : Function;
		function get onAbort( ) : Function;
	}
}